package com.cly.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cly.common.entity.order.dto.OrderDTO;
import com.cly.common.entity.order.dto.OrderDetailDto;
import com.cly.common.entity.order.po.Order;
import com.cly.common.entity.result.Result;

import java.util.List;

public interface OrderService extends IService<Order> {
    Result createOrder(OrderDTO orderDTO);

    Result getOrderById(Long id);

    void updateOrderStatus(Long orderId, Integer status);

    void cancelOrder(Long orderId, List<OrderDetailDto>  orderDetailDto);
}
